package com.woniu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.util.Arrays;

// 自动化配置，mybatis-plus也有自动化配置
// 如果你想不配置数据源，同时不报错，那就把mp的自动化配置关闭
@SpringBootApplication
@MapperScan("com.woniu.mapper")
@EnableSwagger2 // 开启swagger
public class QqmastersApplication {
    public static void main(String[] args) {
        SpringApplication.run(QqmastersApplication.class, args);
    }

}
